package com.hkemmm.shop.dao;

import com.hkemmm.shop.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    User selectUser(@Param("username") String username, @Param("password") String password);

    User existUser(String username);

    int updatePhoto(@Param("photo") String photo, @Param("id") Integer id);

    List<User> getAllUser();
}